package com.cn.service;

import com.cn.domain.UserDetail;
import com.cn.vo.UserAndTokenVo;

/**
 * Created by chenyuncong on 2019/9/16.
 */
public interface UserService {
    //登录，成功返回用户对象和token
    UserAndTokenVo login(String account,String password);

    //logout
    void logout(String token);

    //刷寻token值
    UserAndTokenVo refresh(String oldToken);

    //根据token获取user对象
    UserDetail getUserByToken(String token);
}
